<template>
	<div>
		<div class="t4" id="dy">
			<div class="d2-4" style="margin-top: 15px;">
				<div style="width: 100%;margin: auto" class="b">
					<form :model="neweditForm" ref="neweditForm">
						<div style="border-bottom: 1px solid #e7eaed;line-height: 50px;margin-top: 20px;">
							<div style="display: inline-block;line-height: 50px;vertical-align: middle;">
								<img src="../img/jiantou.png" style="width: 20px;"/>
							</div>
							<span style="font-weight: bold;font-size: 23px;display: inline-block;line-height: 30px;margin-left: 10px;">基本资料</span>
						</div>
						<p class="p2"><span class="sp"><span class="s">学生姓名:</span><input
									v-model="neweditForm.name" style="width: 120px;"></span>
							<span class="sp" style="display: inline-block;width: 200px;"><span class="s">科<span style="margin-left: 2em;">类</span>:</span>
								<el-radio v-model="neweditForm.major" :label="1" style="width: 40px;">理科类</el-radio>
								<el-radio v-model="neweditForm.major" :label="2" style="width: 40px;">
									文科类</el-radio>
							</span>
							<span class="sp"><span class="s" style="margin-left: 10px;">性<span
										style="margin-left: 2em;">别</span>:</span>
								<el-radio v-model="neweditForm.sex" :label="0" style="width: 30px;">男</el-radio>
								<el-radio v-model="neweditForm.sex" :label="1" style="width: 30px;">女</el-radio>
							</span>
							<span class="sp"><span class="s" style="margin-left: 10px;">出生日期:</span>
								<el-date-picker v-model="neweditForm.birthdayDate" type="date" placeholder="选择日期"
									style="width: 120px;" id="rq">
								</el-date-picker>
								<span class="s" style="margin-left: 30px;">民<span
										style="margin-left: 2em;"></span>族:</span>
								<el-select v-model="neweditForm.nation" filterable placeholder="请选择民族"
									class="add-nation-input" style="width: 120px;">
									<el-option v-for="item in minzu" :key="item.dictName" :label="item.dictName"
										:value="item.dictName"></el-option>
								</el-select>
							</span>
						</p><br />
						<p class="p2">
							<span class="sp"><span class="s">就读学校:</span><input style="width: 120px;"
									v-model="neweditForm.school" required></span>
							<span class="sp"><span class="s">户籍地址:</span>
								<el-cascader v-model="neweditForm.address" :options="dz" @change="handleChange"
									style="width: 140px;">
								</el-cascader>
							</span>
							<span class="sp"><span class="s" >政治面貌:</span>
								<el-select v-model="neweditForm.politic" placeholder="请选择" style="width: 100px;">
									<el-option v-for="item in mianmao" :key="item.dictName" :label="item.dictName"
										:value="item.dictName">
									</el-option>
								</el-select>
							</span>

							<span class="sp"><span class="s">考生类别:</span>
								<el-select v-model="neweditForm.stuType" placeholder="请选择" style="width:120px">
									<el-option v-for="item in ks" :key="item.value" :label="item.value"
										:value="item.value">
									</el-option>
								</el-select>
							</span>

							<span class="sp" style=""><span class="s" style="margin-left: 6px;">外语语种:</span>
								<el-select v-model="neweditForm.languagesMsg" placeholder="请选择" style="width: 120px;">
									<el-option v-for="item in yuzhong" :key="item.dictName" :label="item.dictName"
										:value="item.dictName">
									</el-option>
								</el-select>
							</span>
						</p><br />
						<p class="p2" style="margin-top: 28px;">
							<span class="sp"><span class="s" @click="ss()">左眼裸视:</span>
								<el-select v-model="neweditForm.visionLeft" placeholder="请选择" style="width: 125px;">
									<el-option v-for="item in slList" :key="item.value" :label="item.label"
										:value="item.value">
									</el-option>
								</el-select>
							</span>
							<span class="sp" style="margin-left: 16px;display: inline-block;"><span class="s">右眼裸视:</span>
								<el-select v-model="neweditForm.visionRight" placeholder="请选择" style="width: 140px;">
									<el-option v-for="item in slList" :key="item.value" :label="item.label"
										:value="item.value">
									</el-option>
								</el-select>
							</span>
							<span class="sp"><span class="s">身<span
										style="margin-left: 2em;">高</span>:</span><input v-model="neweditForm.height"
									required style="width: 58px;"><span>cm</span></span>
							<span class="sp"><span class="s" style="">体<span
										style="margin-left: 2em;">重</span>:</span><input v-model="neweditForm.weight"
									required style="width: 90px;"><span>kg</span></span>
							<span class="sp"><span class="s" style="">高考年份:</span><el-date-picker v-model="neweditForm.other" type="year" placeholder="选择日期"
									style="width: 120px;" id="rq">
								</el-date-picker></span>
						</p>
						<p class="p2">
							<span class="sp"><span class="s">考生账号:</span><input style="width: 120px;"
									v-model="neweditForm.stuNo" required></span>
							<span class="sp"><span class="s">是否锁定:</span>
									<el-select v-model="neweditForm.rank" placeholder="请选择"
													style="width: 140px;">
													<el-option :key="0" :label="'否'"
														:value="0">
													</el-option>
													<el-option :key="1" :label="'是'"
														:value="1">
													</el-option>
												</el-select>
									</span>
						</p>
						<p class="p2">
							<span class="sp">
								<span class="s">
									主要联系人
								</span>
								<span class="s" style="margin-left: 20px;">
									姓名:
								</span>
								<input v-model="contactsz.name" style="width: 120px;"/>
								<span class="s">
									关系:
								</span>
								<input v-model="contactsz.relationship" style="width: 120px;"/>
								<span class="s">
									职业:
								</span>
								<input v-model="contactsz.occupation" style="width: 120px;"/>
								<span class="s">
									电话:
								</span>
								<input v-model="contactsz.phone" style="width: 120px;"/>
							</span>
						</p>
						<p class="p2">
							<span class="sp">
								<span class="s">
									紧急联系人
								</span>
								<span class="s" style="margin-left: 20px;">
									姓名:
								</span>
								<input v-model="contactsb.name" style="width: 120px;"/>
								<span class="s">
									关系:
								</span>
								<input v-model="contactsb.relationship" style="width: 120px;"/>
								<span class="s">
									职业:
								</span>
								<input v-model="contactsb.occupation" style="width: 120px;"/>
								<span class="s">
									电话:
								</span>
								<input v-model="contactsb.phone" style="width: 120px;"/>
							</span>
						</p>
						
						<div style="margin-top: 30px;">
							<div style="border-bottom: 1px solid #e7eaed;line-height: 50px;margin-top: 20px;">
								<div style="display: inline-block;line-height: 50px;vertical-align: middle;">
									<img src="../img/jiantou.png" style="width: 20px;"/>
								</div>
								<span style="font-weight: bold;font-size: 23px;display: inline-block;line-height: 30px;margin-left: 10px;">考试成绩</span>
							</div>
							<table class="table">
								<tr>
									<th>考试名称</th>
									<th>语文</th>
									<th>数学</th>
									<th>外语</th>
									<th>物理</th>
									<th>化学</th>
									<th>生物</th>
									<th>政治</th>
									<th>历史</th>
									<th>地理</th>
									<th>文综</th>
									<th>理综</th>
									<th>总分</th>
									<th>排名/位次</th>
									<th>人数</th>
									<th>外语口试</th>
									<th style="width: 15%;">备注</th>
								</tr>
								<tr>
									<td>平时成绩</td>
									<td>
										<input style="width: 50%;" v-model="achievementmk.language"/>
									</td>
									<td>
										<input style="width: 50%;" v-model="achievementmk.mathematics"/>
									</td>
									<td>
										<input style="width: 50%;" v-model="achievementmk.foreignLanguages"/>
									</td>
									<td>
										<input style="width: 50%;" v-model="achievementmk.physics"/>
									</td>
									<td>
										<input style="width: 50%;" v-model="achievementmk.chemistry"/>
									</td>
									<td>
										<input style="width: 50%;" v-model="achievementmk.biology"/>
									</td>
									<td>
										<input style="width: 50%;" v-model="achievementmk.politics"/>
									</td>
									<td>
										<input style="width: 50%;" v-model="achievementmk.history"/>
									</td>
									<td>
										<input style="width: 50%;" v-model="achievementmk.geography"/>
									</td>
									<td>
										<input style="width: 50%;" v-model="achievementmk.wenzong"/>
									</td>
									<td>
										<input style="width: 50%;" v-model="achievementmk.comprehensive"/>
									</td>
									<td>
										<input style="width: 50%;" v-model="achievementmk.totalScore"/>
									</td>
									<td>
										<input style="width: 80%;" v-model="achievementmk.ranking"/>
									</td>
									<td>
										<input style="width: 80%;" v-model="achievementmk.number"/>
									</td>
									<td>
										<input style="width: 50%;" v-model="achievementmk.oralTest"/>
									</td>
									<td style="width: 15%;">
										<input style="width: 80%;" v-model="achievementmk.remarks"/>
									</td>
								</tr>
								<tr>
									<td>高考估分</td>
									<td>
										<input style="width: 50%;" v-model="achievementgf.language"/>
									</td>
									<td>
										<input style="width: 50%;" v-model="achievementgf.mathematics"/>
									</td>
									<td>
										<input style="width: 50%;" v-model="achievementgf.foreignLanguages"/>
									</td>
									<td>
										<input style="width: 50%;" v-model="achievementgf.physics"/>
									</td>
									<td>
										<input style="width: 50%;" v-model="achievementgf.chemistry"/>
									</td>
									<td>
										<input style="width: 50%;" v-model="achievementgf.biology"/>
									</td>
									<td>
										<input style="width: 50%;" v-model="achievementgf.politics"/>
									</td>
									<td>
										<input style="width: 50%;" v-model="achievementgf.history"/>
									</td>
									<td>
										<input style="width: 50%;" v-model="achievementgf.geography"/>
									</td>
									<td>
										<input style="width: 50%;" v-model="achievementgf.wenzong"/>
									</td>
									<td>
										<input style="width: 50%;" v-model="achievementgf.comprehensive"/>
									</td>
									<td>
										<input style="width: 50%;" v-model="achievementgf.totalScore"/>
									</td>
									<td>
										<input style="width: 80%;" v-model="achievementgf.ranking"/>
									</td>
									<td>
										<input style="width: 80%;" v-model="achievementgf.number"/>
									</td>
									<td>
										<input style="width: 50%;" v-model="achievementgf.oralTest"/>
									</td>
									<td style="width: 15%;">
										<input style="width: 80%;" v-model="achievementgf.remarks"/>
									</td>
								</tr>
								<tr>
									<td>高考成绩</td>
									<td>
										<input style="width: 50%;" v-model="achievementgk.language"/>
									</td>
									<td>
										<input style="width: 50%;" v-model="achievementgk.mathematics"/>
									</td>
									<td>
										<input style="width: 50%;" v-model="achievementgk.foreignLanguages"/>
									</td>
									<td>
										<input style="width: 50%;" v-model="achievementgk.physics"/>
									</td>
									<td>
										<input style="width: 50%;" v-model="achievementgk.chemistry"/>
									</td>
									<td>
										<input style="width: 50%;" v-model="achievementgk.biology"/>
									</td>
									<td>
										<input style="width: 50%;" v-model="achievementgk.politics"/>
									</td>
									<td>
										<input style="width: 50%;" v-model="achievementgk.history"/>
									</td>
									<td>
										<input style="width: 50%;" v-model="achievementgk.geography"/>
									</td>
									<td>
										<input style="width: 50%;" v-model="achievementgk.wenzong"/>
									</td>
									<td>
										<input style="width: 50%;" v-model="achievementgk.comprehensive"/>
									</td>
									<td>
										<input style="width: 50%;" v-model="achievementgk.totalScore"/>
									</td>
									<td>
										<input style="width: 80%;" v-model="achievementgk.ranking"/>
									</td>
									<td>
										<input style="width: 80%;" v-model="achievementgk.number"/>
									</td>
									<td>
										<input style="width: 50%;" v-model="achievementgk.oralTest"/>
									</td>
									<td style="width: 15%;">
										<input style="width: 80%;" v-model="achievementgk.remarks"/>
									</td>
								</tr>
							</table>
						</div>
						<div>
							<div style="border-bottom: 1px solid #e7eaed;line-height: 50px;margin-top: 20px;">
								<div style="display: inline-block;line-height: 50px;vertical-align: middle;">
									<img src="../img/jiantou.png" style="width: 20px;"/>
								</div>
								<span style="font-weight: bold;font-size: 23px;display: inline-block;line-height: 30px;margin-left: 10px;">特殊类别</span>
							</div>
							<div style="margin-top: 30px;">
								<el-checkbox class="tslb" :true-label="1"
                    :false-label="0" v-model="specialCategory.advanceA">提前批A段：军队院校、公安本科专业、司法本科专业、中国消防救援学院</el-checkbox></br>
								<el-checkbox class="tslb" :true-label="1"
                    :false-label="0" v-model="specialCategory.advanceB">提前批B段：免费医学定向生</el-checkbox></br>
								<el-checkbox class="tslb" :true-label="1"
                    :false-label="0" v-model="specialCategory.advanceC">提前批C段：全国重点马克思主义学院、优师专项、公费师范生、综合评价招生以及其他经过批准的本科高校及专业</el-checkbox></br>
								<el-checkbox class="tslb" :true-label="1"
                    :false-label="0" v-model="specialCategory.advanceZ">提前批专科：公安高职（专科）专业、定向培养军士和航海类专业</el-checkbox></br>
								<el-checkbox class="tslb" :true-label="1"
                    :false-label="0" v-model="specialCategory.singleSetA">单设本科A段：国家专项计划</el-checkbox></br>
								<el-checkbox class="tslb" :true-label="1"
                    :false-label="0" v-model="specialCategory.singleSetB">单设本科B段：地方专项计划</el-checkbox></br>
								<el-checkbox class="tslb" :true-label="1"
                    :false-label="0" v-model="specialCategory.specialA">本科一批特殊类型A段：高水平艺术团、高水平运动队</el-checkbox></br>
								<el-checkbox class="tslb" :true-label="1"
                    :false-label="0" v-model="specialCategory.specialB">本科一批特殊类型B段：高校专项计划</el-checkbox></br>
								<el-checkbox class="tslb" :true-label="1"
                    :false-label="0" v-model="specialCategory.directionalOne">本科一批定向就业、民族班、少数名族预科、四川大学预科</el-checkbox></br>
								<el-checkbox class="tslb" :true-label="1"
                    :false-label="0" v-model="specialCategory.sportsTeam">本科二批高水平运动队</el-checkbox></br>
								<el-checkbox class="tslb" :true-label="1"
                    :false-label="0" v-model="specialCategory.directionalTwo">本科二批定向就业、民族班、少数民族预科、边防军子女预科</el-checkbox></br>
								<el-checkbox class="tslb" :true-label="1"
                    :false-label="0" v-model="specialCategory.specialty">高职（专科）前专门栏目</el-checkbox></br>
							</div>
							<span class="s" style="display: inline-block;margin-top: 20px;margin-bottom: 20px;">情况说明:</span>
							<el-input
							  type="textarea"
							  :rows="4"
							  placeholder="请输入内容"
							  v-model="specialCategory.remarks"
							  >
							</el-input>
						</div>
						<div style="margin-top: 30px;" id="qxdiv">
							<div style="border-bottom: 1px solid #e7eaed;line-height: 50px;margin-top: 20px;">
								<div style="display: inline-block;line-height: 50px;vertical-align: middle;">
									<img src="../img/jiantou.png" style="width: 20px;"/>
								</div>
								<span style="font-weight: bold;font-size: 23px;display: inline-block;line-height: 30px;margin-left: 10px;">报考倾向</span>
							</div>
							<div style="margin-top: 30px;" >
								<span class="s">方案倾向:</span></br>
								<p>
									<el-checkbox class="tslb" :true-label="1"
                    :false-label="0" v-model="preferenceChoice.collegePriority" style="margin-top: 20px;">院校优先</el-checkbox>
									<el-input v-model="preferenceDescription.collegePriority" style="width: 80%;margin-left: 1em;"></el-input>
								</p>
								<p>
									<el-checkbox class="tslb" :true-label="1"
                    :false-label="0" v-model="preferenceChoice.professionalPriority" style="margin-top: 20px;">专业优先</el-checkbox>
									<el-input v-model="preferenceDescription.professionalPriority" style="width: 80%;margin-left: 1em;"></el-input>
								</p>
								<p>
									<el-checkbox class="tslb" :true-label="1"
                    :false-label="0" v-model="preferenceChoice.cityPriority" style="margin-top: 20px;">城市优先</el-checkbox>
									<el-input v-model="preferenceDescription.cityPriority" style="width: 80%;margin-left: 1em;"></el-input>
								</p>
								<p>
									<el-checkbox class="tslb" :true-label="1"
                    :false-label="0" v-model="preferenceChoice.comprehensive" style="margin-top: 20px;">综合考虑</el-checkbox>
									<el-input v-model="preferenceDescription.comprehensive" style="width: 80%;margin-left: 1em;"></el-input>
								</p>
							</div>
							<div style="margin-top: 50px;">
								<span class="s">毕业倾向:</span></br>
								<p>
									<el-checkbox class="tslb" :true-label="1"
                    :false-label="0" v-model="preferenceChoice.work" style="margin-top: 20px;">就<span style="margin-left: 2em;"></span>业</el-checkbox>
									<el-input v-model="preferenceDescription.work" style="width: 80%;margin-left: 1em;"></el-input>
								</p>
								<p>
									<el-checkbox class="tslb" :true-label="1"
                    :false-label="0" v-model="preferenceChoice.postgraduate" style="margin-top: 20px;">考<span style="margin-left: 2em;"></span>研</el-checkbox>
									<el-input v-model="preferenceDescription.postgraduate" style="width: 80%;margin-left: 1em;"></el-input>
								</p>
								<p>
									<el-checkbox class="tslb" :true-label="1"
                    :false-label="0" v-model="preferenceChoice.overseasStudy" style="margin-top: 20px;">留<span style="margin-left: 2em;"></span>学</el-checkbox>
									<el-input v-model="preferenceDescription.overseasStudy" style="width: 80%;margin-left: 1em;"></el-input>
								</p>
							</div>
							<div style="margin-top: 50px;">
								<span class="s">择校倾向:</span></br>
								<p>
									<el-checkbox class="tslb" :true-label="1"
                    :false-label="0" v-model="preferenceChoice.jointInstitutions" style="margin-top: 20px;">合办院校</el-checkbox>
									<el-input v-model="preferenceDescription.jointInstitutions" style="width: 80%;margin-left: 1em;"></el-input>
								</p>
								<p>
									<el-checkbox class="tslb" :true-label="1"
                    :false-label="0" v-model="preferenceChoice.jointMajor" style="margin-top: 20px;">合办专业</el-checkbox>
									<el-input v-model="preferenceDescription.jointMajor" style="width: 80%;margin-left: 1em;"></el-input>
								</p>
								<p>
									<el-checkbox class="tslb" :true-label="1"
                    :false-label="0" v-model="preferenceChoice.famousSchool" style="margin-top: 20px;">名校分校</el-checkbox>
									<el-input v-model="preferenceDescription.famousSchool" style="width: 80%;margin-left: 1em;"></el-input>
								</p>
							</div>
						</div>
						<div style="border-bottom: 1px solid #e7eaed;line-height: 50px;margin-top: 20px;">
							<div style="display: inline-block;line-height: 50px;vertical-align: middle;">
								<img src="../img/jiantou.png" style="width: 20px;"/>
							</div>
							<span style="font-weight: bold;font-size: 23px;display: inline-block;line-height: 30px;margin-left: 10px;">体检结论</span>
						</div>
						<p style="margin-top: 30px;"><span class="s"><span
									style="margin-left: 2em;"></span>高校在开展录取工作时必须遵守《普通高等学校体检工作指导意见》及有关补充规定，部分专业有附加体检要求的需要在院校招生章程中说明。请根据高考体检结论或阅读文件内容根据自身情况在网页下方勾选对应选项。</span>
						</p><br />
						<p style="margin-top:20px;margin-left: 2em;"><span class="s">一、学校可不予录取</span></p><br />
						<span class="wz"
							style="margin-top: 20px;">1.严重心脏病(先天性心脏病经手术治愈，或房室间隔缺损分流量少，动脉导管未闭返流血量少，经二级以上医院专科检查确定无须手术者除外)、心肌病、高血压病。</span><br />
						<span class="wz">2.重症支气管扩张、哮喘，恶性肿瘤、慢性肾炎、尿毒症。</span><br />
						<span class="wz">3.严重的血液、内分泌及代谢系统疾病、风湿性疾病。</span><br />
						<span class="wz">4.重症或难治性癫痫或其他神经系统疾病；严重精神病未治愈、精神活性物质滥用和依赖。</span><br />
						<span class="wz">5.慢性肝炎病人并且肝功能不正常者(肝炎病原携带者但肝功能正常者除外)。</span><br />
						<span class="wz">6.结核病除下列情况外可以不予录取：</span><br />
						<span class="wz">(1)原发型肺结核、浸润性肺结核已硬结稳定；结核型胸膜炎已治愈或治愈后遗有胸膜肥厚者；</span><br />
						<span
							class="wz">(2)一切肺外结核(肾结核、骨结核、腹膜结核等)、血行性播散型肺结核治愈后一年以上未复发，经二级以上医院(或结核病防治所)专科检查无变化者；</span><br />
						<span class="wz">(3)淋巴腺结核已临床治愈无症状者。</span><br />
						<p style="margin-top: 35px;margin-left: 2em;"><span class="s">二、学校有关专业可不予录取</span></p><br />
						<span class="wz"
							style="margin-top: 20px;">1.轻度色觉异常(俗称色弱)不能录取的专业：以颜色波长作为严格技术标准的化学类、化工与制药类、药学类、生物科学类、公安技术类、地质学类各专业，医学类各专业；生物工程、生物医学工程、动物医学、动物科学、野生动物与自然保护区管理、心理学、应用心理学、生态学、侦查学、特种能源工程与烟火技术、考古学、海洋科学、海洋技术、轮机工程、食品科学与工程、轻化工程、林产化工、农学、园艺、植物保护、茶学、林学、园林、蚕学、农业资源与环境、水产养殖学、海洋渔业科学与技术、材料化学、环境工程、高分子材料与工程、过程装备与控制工程、学前教育、特殊教育、体育教育、运动训练、运动人体科学、民族传统体育各专业。</span><br />
						<span
							class="wz">2.色觉异常II度(俗称色盲)不能录取的专业，除同轻度色觉异常外，还包括美术学、绘画、艺术设计、摄影、动画、博物馆学、应用物理学、天文学、地理科学、应用气象学、材料物理、矿物加工工程、资源勘探工程、冶金工程、无机非金属材料工程、交通运输、油气储运工程等专业。专科专业：与以上专业相同或相近专业。</span><br />
						<span
							class="wz">3.不能准确识别红、黄、绿、蓝、紫各种颜色中任何一种颜色的导线、按键、信号灯、几何图形者不能录取的专业：除同轻度色觉异常、色觉异常II度两类列出专业外，还包括经济学类、管理科学与工程类、工商管理类、公共管理类、农业经济管理类、图书档案学类各专业。不能准确在显示器上识别红、黄、绿、蓝、紫各颜色中任何一种颜色的数码、字母者不能录取到计算机科学与技术等专业。</span><br />
						<span
							class="wz">4.裸眼视力任何一眼低于5.0者，不能录取的专业：飞行技术、航海技术、消防工程、刑事科学技术、侦察。专科专业：海洋船舶驾驶及与以上专业相同或相近专业(如民航空中交通管制)。</span><br />
						<span class="wz"
							>5.裸眼视力任何一眼低于4.8者，不能录取的专业：轮机工程、运动训练、民族传统体育。专科专业：烹饪与营养、烹饪工艺等。</span><br />
						<p style="margin-top: 35px;margin-left: 2em;"><span class="s">三、不宜就读专业</span></p><br />
						<span class="wz"
							style="margin-top: 20px;">1.主要脏器：肺、肝、肾、脾、胃肠等动过较大手术，功能恢复良好，或曾患有心肌炎、胃或十二指肠溃疡、慢性支气管炎、风湿性关节炎等病史，甲状腺机能亢进已治愈一年的，不宜就读地矿类、水利类、交通运输类、能源动力类、公安学类、体育学类、海洋科学类、大气科学类、水产类、测绘类、海洋工程类、林业工程类、武器类、森林资源类、环境科学类、环境生态类、旅游管理类、草业科学类各专业，及土木工程、消防工程、农业水利工程、农学、法医学、水土保持与荒漠化防治、动物科学各专业。专科专业不宜就读烹饪工艺、西餐工艺、面点工艺、烹饪与营养、表演、舞蹈学、雕塑、考古学、地质学、建筑工程、交通土建工程、工业设备安装工程、铁道与桥梁工程、公路与城市道路工程、公路与桥梁工程、铁道工程、工业与民用建筑工程专业。</span><br />
						<span
							class="wz">2.先天性心脏病经手术治愈，或房室间隔缺损分流量少，动脉导管未闭返流血量少，经二级以上医院专科检查确定无需手术者不宜就读的专业同第三部分第一条。</span><br />
						<span class="wz">3.肢体残疾(不继续恶化)，不宜就读的专业同第三部分第一条。</span><br />
						<span
							class="wz">4.屈光不正(近视眼或远视眼，下同)任何一眼矫正到4.8、镜片度数大于400度的，不宜就读海洋技术、海洋科学、测控技术与仪器、核工程与核技术、生物医学工程、服装设计与工程、飞行器制造工程。专科专业：与以上相同或相近专业。</span><br />
						<span
							class="wz">5.任何一眼矫正到4.8、镜片度数大于800度的，不宜就读地矿类、水利类、土建类、动物生产类、水产类、材料类、能源动力类、化工与制药类、武器类、农业工程类、林业工程类、植物生产类、森林资源类、环境生态类、医学类、心理学类、环境与安全类、环境科学类、电子信息科学类、材料科学类、地质学类、大气科学类及地理科学、测绘工程、交通工程、交通运输、油气储运工程、船舶与海洋工程、生物工程、草业科学、动物医学各专业。专科专业：与以上相同或相近专业。</span><br />
						<span
							class="wz">6.一眼失明另一眼矫正到4.8、镜片度数大于400度的，不宜就读工学、农学、医学、法学各专业及应用物理学、应用化学、生物技术、地质学、生态学、环境科学、海洋科学、海洋技术、生物科学、应用心理学等专业。</span><br />
						<span
							class="wz">7.两耳听力均在3米以内，或一耳听力在5米另一耳全聋的，不宜就读法学各专业、外国语言文学各专业以及外交学、新闻学、侦察学、学前教育、音乐学、录音艺术、土木工程、交通运输、动物科学、动物医学各专业、医学各专业。</span><br />
						<span
							class="wz">8.嗅觉迟钝、口吃、步态异常、驼背，面部疤痕、血管瘤、黑色素痣、白瘢风的，不宜就读教育学类、公安学类各专业以及外交学、法学、新闻学、音乐表演、表演各专业。</span><br />
						<span class="wz">9.斜视、嗅觉退钝、口吃不宜就读医学类专业。</span><br />
						<p class="tp" style="margin-top:35px;"><span class="jl">1.合格</span>
							<el-checkbox-group v-model="hege" size="mini" class="dxbt" id="xx">
								<el-checkbox-button label="">
									<span style="margin-right: 50px;display: inline-block;">合格</span>
								</el-checkbox-button>
							</el-checkbox-group>
						</p>
						<p class="tp"><span class="jl">2.学校可不录取</span>
							<el-checkbox-group v-model="xxlq" size="mini" class="dxbt">
								<el-checkbox-button v-for="item in cities" :label="item.code" :key="item.code">
									{{item.name}}
								</el-checkbox-button>
							</el-checkbox-group>
						</p>
						<p class="tp"><span class="jl">3.有关专业可不录取</span>
							<el-checkbox-group v-model="zylq" size="mini" class="dxbt">
								<el-checkbox-button v-for="item in cities1" :label="item.code" :key="item.code">
									{{item.name}}
								</el-checkbox-button>
							</el-checkbox-group>
						</p>
						<p class="tp"><span class="jl">4.不宜就读专业</span>
							<el-checkbox-group v-model="byjd" size="mini" class="dxbt">
								<el-checkbox-button v-for="item in cities2" :label="item.code" :key="item.code">
									{{item.name}}
								</el-checkbox-button>
							</el-checkbox-group>
						</p>
						<div style="margin-top: 30px;">
							<div style="border-bottom: 1px solid #e7eaed;line-height: 50px;margin-top: 20px;">
								<div style="display: inline-block;line-height: 50px;vertical-align: middle;">
									<img src="../img/jiantou.png" style="width: 20px;"/>
								</div>
								<span style="font-weight: bold;font-size: 23px;display: inline-block;line-height: 30px;margin-left: 10px;">其他情况</span>
							</div>
							<el-input
							  type="textarea"
							  :rows="4"
							  placeholder="请输入内容"
							  style="margin-top: 20px;"
							  v-model="neweditForm.remarks"
							  >
							</el-input>
						</div>
						
					</form>
				</div>
			</div>
		</div>
		<div id="npt">
			<el-button style="background-color: red;color: white;width:60px;height:60px;"
				@click="bc($event)" circle >保存</el-button></br>
			<el-button style="background-color: green;color: white;width:60px;height:60px;margin-top: 20px;"
				@click="fh()" circle >返回</el-button>
		</div>
	</div>
</template>
<script type="text/javascript" src="../js/jquery-1.8.3.js"></script>
<script>
	import {
		regionData,
		CodeToText,
		TextToCode
	} from 'element-china-area-data'
	import {
		request
	} from "../util/request.js"
	const cityOptions = [{
		code: '2.1',
		name: '1'
	}, {
		code: '2.2',
		name: '2'
	}, {
		code: '2.3',
		name: '3'
	}, {
		code: '2.4',
		name: '4'
	}, {
		code: '2.5',
		name: '5'
	}, {
		code: '2.6',
		name: '6'
	}];
	const cityOptions1 = [{
		code: '3.1',
		name: '1'
	}, {
		code: '3.2',
		name: '2'
	}, {
		code: '3.3',
		name: '3'
	}, {
		code: '3.4',
		name: '4'
	}, {
		code: '3.5',
		name: '5'
	}];
	const cityOptions2 = [{
		code: '4.1',
		name: '1'
	}, {
		code: '4.2',
		name: '2'
	}, {
		code: '4.3',
		name: '3'
	}, {
		code: '4.4',
		name: '4'
	}, {
		code: '4.5',
		name: '5'
	}, {
		code: '4.6',
		name: '6'
	}, {
		code: '4.7',
		name: '7'
	}, {
		code: '4.8',
		name: '8'
	}, {
		code: '4.9',
		name: '9'
	}];
	export default {
		data() {
			return {
				achievementmk:{
					language:null,
					mathematics:null,
					foreignLanguages:null,
					physics:null,
					chemistry:null,
					biology:null,
					politics:null,
					history:null,
					geography:null,
					oralTest:null,
					wenzong:null,
					comprehensive:null,
					totalScore:null,
					ranking:null,
					number:null,
					remarks:null,
					level:0
				},
				achievementgf:{
					language:null,
					mathematics:null,
					foreignLanguages:null,
					physics:null,
					chemistry:null,
					biology:null,
					politics:null,
					history:null,
					geography:null,
					oralTest:null,
					wenzong:null,
					comprehensive:null,
					totalScore:null,
					ranking:null,
					number:null,
					remarks:null,
					level:1
				},
				achievementgk:{
					language:null,
					mathematics:null,
					foreignLanguages:null,
					physics:null,
					chemistry:null,
					biology:null,
					politics:null,
					history:null,
					geography:null,
					oralTest:null,
					wenzong:null,
					comprehensive:null,
					totalScore:null,
					ranking:null,
					number:null,
					remarks:null,
					level:2
				},
				contactsz:{
					name:null,
					relationship:null,
					occupation:null,
					phone:null,
					level:0
				},
				contactsb:{
					name:null,
					relationship:null,
					occupation:null,
					phone:null,
					level:1
				},
				specialCategory:{
					advanceA:null,
					advanceB:null,
					advanceC:null,
					advanceZ:null,
					singleSetA:null,
					singleSetB:null,
					specialA:null,
					specialB:null,
					directionalOne:null,
					sportsTeam:null,
					directionalTwo:null,
					specialty:null,
					remarks:null
				},
				preferenceChoice:{
					collegePriority:null,
					professionalPriority:null,
					cityPriority:null,
					comprehensive:null,
					work:null,
					postgraduate:null,
					overseasStudy:null,
					jointInstitutions:null,
					jointMajor:null,
					famousSchool:null
				},
				preferenceDescription:{
					collegePriority:null,
					professionalPriority:null,
					cityPriority:null,
					comprehensive:null,
					work:null,
					postgraduate:null,
					overseasStudy:null,
					jointInstitutions:null,
					jointMajor:null,
					famousSchool:null
				},
				infos:{},
				dz: regionData,
				selectedOptions: [],
				user: {},
				dialogVisible: false,
				minzu: [],
				mianmao: [],
				yuzhong: [],
				hege:false,
				code1: [],
				code2: [{
					code: '1'
				}, {
					code: "2"
				}, {
					code: "5"
				}],
				neweditForm: {

				},
				neweditForms: [],
				infoid1: {
					stuId: '',
					infoId: 1,
					code: ''
				},
				infoid2: {
					stuId: '',
					infoId: 2,
					code: ''
				},
				infoid3: {
					stuId: '',
					infoId: 3,
					code: ''
				},
				ksvalue: "",
				ks: [{
					id: 1,
					value: "城镇应届",
				}, {
					id: 2,
					value: "城镇往届",
				}, {
					id: 3,
					value: "农村应届",
				}, {
					id: 4,
					value: "农村往届",
				}, ],
				slList: [{
					label: "4.0",
					value: "4",
				}, {
					label: "4.1",
					value: "4.1",
				}, {
					label: "4.2",
					value: "4.2",
				}, {
					label: "4.3",
					value: "4.3",
				}, {
					label: "4.4",
					value: "4.4",
				}, {
					label: "4.5",
					value: "4.5",
				}, {
					label: "4.6",
					value: "4.6",
				}, {
					label: "4.7",
					value: "4.7",
				}, {
					label: "4.8",
					value: "4.8",
				}, {
					label: "4.9",
					value: "4.9",
				}, {
					label: "5.0",
					value: "5",
				}, {
					label: "5.1",
					value: "5.1",
				}, {
					label: "5.2",
					value: "5.2",
				}, {
					label: "5.3",
					value: "5.3",
				}],
				hg: [],
				xxlq: [], //学校可不录取
				zylq: [], //有关专业可不录取
				byjd: [],
				hgs: [{code:1,name:''},],
				cities: cityOptions,
				cities1: cityOptions1,
				cities2: cityOptions2,
			}
		},
		methods: {
			fh(){
				this.$router.go(-1)
			},
			bc() {
						this.submitForm()
						this.saveOrUpdateAdmitted()
						this.SaveOrUpdateSpecialCategory()
						this.SaveOrUpdatePreferenceChoice()
						this.SaveOrUpdatePreferenceDescription()
						this.SaveOrUpdateContacts()
						this.SaveOrUpdateAchievement()
			},
			getminzu() {
				request({
					method: 'Get',
					url: 'sysDict/getDict',
					params: {
						dictType: 'nation_type'
					}
				}).then(res => {
					this.minzu = res.data
				})
			},
			getmianmao() {
				request({
					method: 'Get',
					url: 'sysDict/getDict',
					params: {
						dictType: 'politic_type'
					}
				}).then(res => {
					this.mianmao = res.data
				})
			},
			getyuzhong() {
				request({
					method: 'Get',
					url: 'sysDict/getDict',
					params: {
						dictType: 'languages_msg_type'
					}
				}).then(res => {
					this.yuzhong = res.data
					// console.log("语种" + JSON.stringify(this.yuzhong))
				})
			},
			getAchievement(){
				request({
					method: 'get',
					url: 'achievement/getAchievement',
					params: {
						stuId: this.neweditForm.id
					}
				}).then(res => {
					if(res.data!=null){
						res.data.forEach(i=>{
							if(i.level==0){
								this.achievementmk=i
							}else if(i.level==1){
								this.achievementgf=i
							}else if(i.level==2){
								this.achievementgk=i
							}
						})
						
					}
				})
			},
			SaveOrUpdateAchievement(){
				this.achievementmk.stuId=this.neweditForm.id
				this.achievementgf.stuId=this.neweditForm.id
				this.achievementgk.stuId=this.neweditForm.id
				const achievement=[]
				achievement.push(this.achievementmk)
				achievement.push(this.achievementgf)
				achievement.push(this.achievementgk)
				request({
					method: 'post',
					url: 'achievement/SaveOrUpdateAchievement',
					data:achievement
				}).then(result => {
					
				})
			},
			getContacts(){
				request({
					method: 'get',
					url: 'contacts/getContacts',
					params: {
						stuId: this.neweditForm.id
					}
				}).then(res => {
					if(res.data!=null){
						res.data.forEach(i=>{
							if(i.level==0){
								this.contactsz=i
							}else if(i.level==1){
								this.contactsb=i
							}
						})
						
					}
				})
			},
			SaveOrUpdateContacts(){
				this.contactsz.stuId=this.neweditForm.id
				this.contactsb.stuId=this.neweditForm.id
				const contacts=[]
				contacts.push(this.contactsz)
				contacts.push(this.contactsb)
				request({
					method: 'post',
					url: 'contacts/SaveOrUpdateContacts',
					data:contacts
				}).then(result => {
					
				})
			},
			getPreferenceDescription(){
				request({
					method: 'get',
					url: 'preferenceDescription/getPreferenceDescription',
					params: {
						stuId: this.neweditForm.id
					}
				}).then(res => {
					if(res.data!=null){
						this.preferenceDescription=res.data
					}
				})
			},
			SaveOrUpdatePreferenceDescription(){
				this.preferenceDescription.stuId=this.neweditForm.id
				request({
					method: 'post',
					url: 'preferenceDescription/SaveOrUpdatePreferenceDescription',
					data:this.preferenceDescription
				}).then(result => {
					
				})
			},
			getPreferenceChoice(){
				request({
					method: 'get',
					url: 'preferenceChoice/getPreferenceChoice',
					params: {
						stuId: this.neweditForm.id
					}
				}).then(res => {
					if(res.data!=null){
						this.preferenceChoice=res.data
					}
				})
			},
			SaveOrUpdatePreferenceChoice(){
				this.preferenceChoice.stuId=this.neweditForm.id
				request({
					method: 'post',
					url: 'preferenceChoice/SaveOrUpdatePreferenceChoice',
					data:this.preferenceChoice
				}).then(result => {
					
				})
			},
			getSpecialCategory(){
				request({
					method: 'get',
					url: 'specialCategory/getSpecialCategory',
					params: {
						stuId: this.neweditForm.id
					}
				}).then(res => {
					if(res.data!=null){
						this.specialCategory=res.data
					}
				})
			},
			SaveOrUpdateSpecialCategory(){
				this.specialCategory.stuId=this.neweditForm.id
				request({
					method: 'post',
					url: 'specialCategory/SaveOrUpdateSpecialCategory',
					data:this.specialCategory
				}).then(result => {
					
				})
			},
			getstu() {
				request({
					method: 'get',
					url: 'student/getOneStu',
					params:{
						id:this.infos.id
					}
				}).then(res => {
					this.neweditForm=res.data
					// console.log("结果"+JSON.stringify(res.data))
					// this.neweditForm=this.infos
					if(this.neweditForm.isEligible===1){
						this.hege=true
						
					}
					if (this.neweditForm.address != null) {
						const value = this.neweditForm.address.split("/")
						const s = value[0]
						const shi = value[1]
						const qu = value[2]
						const dq = [TextToCode[s].code, TextToCode[s][shi].code, TextToCode[s][shi][qu].code]
						this.neweditForm.address = dq
						// console.log("什么意思"+this.neweditForm.address)
					}
						this.getNotAdmitted()
						this.getSpecialCategory()
						this.getPreferenceChoice()
						this.getPreferenceDescription()
						this.getContacts()
						this.getAchievement()
				})
			},
			submitForm() {
					const value = this.neweditForm.address
					if (value != null && value[1] != null && value[2] != null) {
						var dz = CodeToText[value[0]] + '/' + CodeToText[value[1]] + '/' + CodeToText[value[2]]
						this.addressid = value[2]
					} else {
						if (value != null && value[1] != null) {
							dz = CodeToText[value[0]] + '/' + CodeToText[value[1]]
							this.addressid = value[1]
						} else if (value != null) {
							dz = CodeToText[value[0]]
							this.addressid = value[0]
						}
					}
					this.neweditForm.address = dz
					if(this.hege===true){
						this.neweditForm.isEligible=1
					}else{
						this.neweditForm.isEligible=0
					}
					this.neweditForm.chinese=this.achievementgk.language
					this.neweditForm.manth=this.achievementgk.mathematics
					this.neweditForm.english=this.achievementgk.foreignLanguages
					this.neweditForm.biology=this.achievementgk.oralTest
					this.neweditForm.precedence=this.achievementgk.ranking
					this.neweditForm.score=this.achievementgk.totalScore
					if(this.neweditForm.major==1){
						this.neweditForm.comprehensive=this.achievementgk.comprehensive
					}else if(this.neweditForm.major==2){
						this.neweditForm.comprehensive=this.achievementgk.wenzong
					}
					request({
						method: 'POST',
						url: 'student/saveOrUpdateArchives',
						data: this.neweditForm
					}).then(result => {
						if(result.code==0||result.code==200){
							this.$message({
								message: '保存成功！',
								type: 'success'
							});
						}else{
							this.$message({
								message: result.msg,
								type: 'error'
							});
						}
						this.neweditForm.address = value
					})
			},
			getNotAdmitted() {
				request({
					method: 'POST',
					url: 'stuArchivesRel/getNotAdmitted',
					params: {
						stuid: this.neweditForm.id
					}
				}).then(res => {
					// this.neweditForms = JSON.stringify(res.data) 
					res.data.xz.forEach(i => {
						if (i.infoId == 1) {
							this.xxlq.push(i.code.toString());
						} else if (i.infoId == 2) {
							this.zylq.push(i.code.toString());
						} else if (i.infoId == 3) {
							this.byjd.push(i.code.toString());
						}
					})
					// console.log("限制" + JSON.stringify(res.data))
				})
			},
			saveOrUpdateAdmitted() {
				this.infoid1.codeList = this.xxlq
				this.infoid2.codeList = this.zylq
				this.infoid3.codeList = this.byjd
				this.infoid1.stuId = this.neweditForm.id
				this.infoid2.stuId = this.neweditForm.id
				this.infoid3.stuId = this.neweditForm.id
				this.neweditForms = [this.infoid1, this.infoid2, this.infoid3]
				request({
					method: 'POST',
					url: 'stuArchivesRel/saveOrUpdateAdmitted',
					data: this.neweditForms
				}).then(res => {
					// console.log(res)
				})
			},
			// 编辑格式化地址
			handleChange(value) {
				this.neweditForm.address = value
			},
		},
		created() {
			this.infos = this.$route.params.info
			this.infos = JSON.parse(localStorage.getItem('stu'))
			this.getminzu()
			this.getmianmao()
			this.getyuzhong()
			this.getstu()
		}
	}
</script>

<style>
	body {
		min-width: 1440px;
		width:expression(document.body.clientWidth < 1440? “1440px”: “auto” );
		overflow-x: hidden;
		margin: 0;
		padding: 0;
		/* width: 1536px; */
	}

	.d1-4 {
		width: 100%;
		text-align: center;
		margin: 0 auto;
		height: 80px;
		align-items: center;
		border-bottom: 1px solid #e7eaed;
	}

	.t4 .ul1 {
		width: 50%;
		list-style: none;
		height: 100%;
		display: inline-block;
		margin-left: 5%;
	}

	.ul1 li {
		height: 50px;
		line-height: 50px;
		display: inline-block;
		width: 10%;
		font-size: 15px;
		height: 100%;
	}


	.d2-4 {
		width: 85%;
		margin: auto;
	}

	.s {
		font-weight: bold;
		font-size: 15px;
		margin-right: 0.375rem;
	}

	p {
		width: 100%;
	}

	.d3-4 {
		width: 100%;
		margin: auto;
		height: 70px;
		text-align: center;
		margin-top: 50px;
		background-color: #f1f3f4;
	}

	.d3-4 p {
		line-height: 70px;
	}

	.wz {
		display: inline-block;
		margin-bottom: 0.125rem;
		text-indent: 2em;
		line-height: 30px;
	}

	.t4 select {
		color: black;
		border: 0.0625rem #e7eaed solid;
		text-align: center;
		margin-right: 1%;
		height: 20px;
	}

	.sp {
		margin-right: 25px;

	}

	.d2-4 p {
		display: inline-block;
		height: 20px;
		height: 20px;
		margin-top: 15px;
	}

	.t4 .jl {
		width: 10em;
		font-size: 15px;
		font-weight: bold;
		margin-right: 2%;
		display: inline-block;
		height: 30px;
	}

	.t4 input {
		border: 0.0625rem #e7eaed solid;
		border-radius: 0.3125rem;
		margin-right: 1%;
		height: 22px;
		text-align: center;
	}

	.t4 {
		font-size: 15px;
	}

	.t4 input.el-input__inner {
		height: 25px;
	}


	.t4 .p2 {
		height: 12px;
		padding: 0;
	}

	.t4 .tp {
		margin-top: 0;
		margin-left: 2em;
	}

	.t4 .dxbt {
		display: inline-block;
	}

	.t4 .el-checkbox-button:first-child .el-checkbox-button__inner {
		border-radius: 0;
		margin-bottom: 10px;
	}

	.t4 .el-checkbox-button:last-child .el-checkbox-button__inner {
		border-radius: 0;
	}

	.t4 .el-checkbox-button el-checkbox-button--mini {
		padding: 0;
		height: 10px;
	}

	.t4 .el-checkbox-button__original {
		margin-top: 10px;
	}

	.t4 .el-checkbox-button__inner {
		margin-bottom: 10px;
	}

	.t4 #xx .el-checkbox-button__inner {
		padding: 5px 0px 0px 6px;
		width: 40px;
		height: 25px;
	}

	#npt {
		position: fixed !important;
		right: 10px;
		top: 260px;

	}
	.el-input__prefix .el-icon-date:before{
		content:none;
	}
	.t4 .el-input--prefix .el-input__inner{
		padding-left: 0;
	}
	.t4 .el-input__icon{
		line-height: 20px;
	}
	.t4 .table td{
		text-align: center;
		width: 5%;
	}
	.t4 .table th{
		text-align: center;
	}
	.t4 .table tr{
		height: 50px;
	}
	.t4 .tslb{
		height: 30px;
	}
	.t4 #qxdiv input{
		text-align: left;
	}
</style>
